<p-dialog header="{{title}}" [(visible)]="display" modal="modal" [responsive]="true" [width]="800" [minWidth]="200" (onHide)="closeJurEditMask(false)">
  <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px;max-height: 300px;overflow-y: auto;">
    <!--<form [formGroup]="jur">-->
      <div class="ui-grid-row margin-bottom-1vw">
        <div class="ui-grid-col-6">
          <h4 style="margin-bottom: 15px;">所有权限</h4>
          <p-tree [value]="allJurs" selectionMode="checkbox" [(selection)]="selected" (onNodeExpand)="nodeExpand($event)" (onNodeSelect) = "NodeSelect($event)" (onNodeUnselect) = "onNodeUnselect($event)"></p-tree>
        </div>
        <div class="ui-grid-col-6">
          <h4 style="margin-bottom: 15px;">已选权限</h4>
          <p-tree [value]="ownJurs" selectionMode="single" (onNodeExpand)="ownNodeExpand($event)"></p-tree>
        </div>
      </div>
    <!--</form>-->
  </div>
  <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid">
    <div class="ui-grid-row margin-bottom-1vw">
      <div class="ui-grid-col-6"></div>
      <div class="ui-grid-col-3 padding-tblr">
        <button pButton type="submit" label="确认" (click)="formSubmit(false)"></button>
      </div>
      <div class="ui-grid-col-3 padding-tblr">
        <button pButton type="button" label="取消" (click)="closeJurEditMask(false)"></button>
      </div>
    </div>
  </div>
</p-dialog>

<p-growl [(value)]="msgs"></p-growl>
